{template 'header'}

    <style type="text/css">
        .adddiv {
    position: fixed;
    right: 30px;
    bottom: 25px;
    z-index: 3;
    width: 60px;
    height: 60px;
    background: #3eadfb;
    border-radius: 60px;
    text-align: center;
    padding-top: 0;
    box-shadow: 0 6px 9px #92d1fe;
}

    </style>
    <body>
   
   <!--  <div class="mui-content">
        <div class="mui-input-row">
			<label>选择分类</label>
			<div class="labrigt">
				<select onchange="getchildcate();" id="cate">
					<option >请选择</option>
					{loop $bmlist $bm}
						<option >{$bm['department']}</option>
						{loop $bm['child'] $cate}
							<option value="{$cate['id']}">&nbsp;&nbsp;&nbsp;{$cate['category']}</option>
						{/loop}
					{/loop}
				</select>
		
				<select id="childcate">
					 
				</select>
			</div>
		</div>
    </div> 

    
    


        <button type="button" class="mui-btn mui-btn-primary mui-btn-block">提交</button>
 


    <script type="text/javascript">
    
    function getchildcate(){
    	var n = document.getElementById("cate").value;
        console.log(n);
    	var optstr='';
    	mui('#childcate')[0].innerHTML='';
    	mui.ajax("{php echo $this->createMobileUrl('getchildcate')}",{
    		data:'id='+n,
    		dataType:'json',//服务器返回json格式数据
    		type:'post',//HTTP请求类型
    		timeout:10000,//超时时间设置为10秒；
    		success:function(data){
    			mui.each(data,function (index,element) {

    				optstr+="<option value='"+element.id+"'>"+element.question+"</option>";
    				//document.getElementById("childcate").options.add( new Option(element.id, element.question));
    			});
    			
    			mui('#childcate')[0].insertAdjacentHTML('beforeend', optstr);
    			//mui(this).append(optstr);
    			//console.log(optstr);
    			//document.getElementById("childcate").innerHTML(optstr) ;
    		},
    		error:function(xhr,type,errorThrown){
    			 
    		}
    	});
    }
    
    </script> -->
<!-- <div class="mui-content">
    <div class="mui-segmented-control mui-segmented-control-inverted" id="menu">
        <a class="mui-control-item mui-active" href="{php echo $this->createMobileUrl('index')}">反馈类别</a>
        <a class="mui-control-item" href="{php echo $this->createMobileUrl('mylist')}">已反馈</a>
    </div>  -->

   <div class="mui-segmented-control mui-segmented-control-inverted" id="menu" style="margin-top: 50px;">
        <a class="mui-control-item mui-active" href="#item1">我发起</a>
        <a class="mui-control-item" href="#item2">我参与</a>
    </div> 

     <div id="item1" class="mui-slider-item mui-control-content mui-active">
                <div class="mui-content">
                <ul class="mui-table-view mui-grid-view mui-grid-9">
                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '16'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/jiaoxue.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">博学楼</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '2'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/sushe.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">宿舍</div></a></li>

                     
                     <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '3'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/yushi.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">浴室</div></a></li>
 
                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '4'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/canying.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">餐饮</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '5'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/jijian.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">公共设施</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '6'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/jiaowu.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">教务</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '7'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/wangluo.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">网络管理</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '8'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/baowei.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">安全保卫</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '9'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/shangjia.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">商家</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '10'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/houqing.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">物业</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '11'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/xuesheng.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">学生组织</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '12'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/guangbo.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">校园广播</div></a></li>

                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="{php echo $this->createMobileUrl('feedback',array('id' => '13'))}">
                            <span class="mui-icon"><img src="../addons/zh_qyfk/style/img/tushu.png" style="width: 40.8px; height: 40.8px;"></span>
                            <div class="mui-media-body">图书馆</div></a></li>

                    
                </ul> 
    </div>

            </div>
           <!--  <div id="item2" class="mui-slider-item mui-control-content">
                <div class="mui-card"> 
            <div class="mui-card-header">
                <a class="mui-card-link">会议时间：</a>
                <a class="mui-card-link">
                    
                </a>
            </div>
            <div class="mui-card-content"  onclick="javascript:window.location='{php echo $this->createMobileUrl('detail',array('id'=>$item['id']));}'">
                <div class="mui-card-content-inner">
                    <h5>{$item['conname']}</h5>  
                    <p class="mui-h6">
                        <b>地点：</b>{$item['address']}<br> 
                    </p>
                </div>
            </div>
            <div class="mui-card-footer"> 
                <span class="mui-h5"></span><span class="mui-h5"></span>
                <span class="mui-h5"> <button type="button" class="mui-btn mui-btn-primary mui-btn-outlined"  onclick="javascript:window.location='{php echo $this->createMobileUrl('detail',array('id'=>$item['id']));}'" >详情</button></span> 
            </div>
        </div> 
            </div> -->
    
    
    
  
    

    
   

</body>

</html>
